<?xml version="1.0" encoding="utf-8"?>
<xs:schema xmlns:tns="http://schemas.datacontract.org/2004/07/Communergy.Common" xmlns:ser="http://schemas.microsoft.com/2003/10/Serialization/" elementFormDefault="qualified" targetNamespace="http://schemas.datacontract.org/2004/07/Communergy.Common" xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:import schemaLocation="http://localhost:14340/services/CommunergyUploadService.svc?xsd=xsd1" namespace="http://schemas.microsoft.com/2003/10/Serialization/" />
  <xs:complexType name="ArrayOfRealtimeEnergyReading">
    <xs:sequence>
      <xs:element minOccurs="0" maxOccurs="unbounded" name="RealtimeEnergyReading" nillable="true" type="tns:RealtimeEnergyReading" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="ArrayOfRealtimeEnergyReading" nillable="true" type="tns:ArrayOfRealtimeEnergyReading" />
  <xs:complexType name="RealtimeEnergyReading">
    <xs:sequence>
      <xs:element minOccurs="0" name="Joules" type="xs:int" />
      <xs:element minOccurs="0" name="ReadingDateTime" type="xs:dateTime" />
      <xs:element minOccurs="0" name="Watts" type="xs:int" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="RealtimeEnergyReading" nillable="true" type="tns:RealtimeEnergyReading" />
  <xs:complexType name="HistoricalEnergyReading">
    <xs:sequence>
      <xs:element minOccurs="0" name="KWh" type="xs:decimal" />
      <xs:element minOccurs="0" name="ReadingDateTime" type="xs:dateTime" />
      <xs:element minOccurs="0" name="TimeSpan" type="ser:duration" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="HistoricalEnergyReading" nillable="true" type="tns:HistoricalEnergyReading" />
  <xs:complexType name="ArrayOfHistoricalEnergyReading">
    <xs:sequence>
      <xs:element minOccurs="0" maxOccurs="unbounded" name="HistoricalEnergyReading" nillable="true" type="tns:HistoricalEnergyReading" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="ArrayOfHistoricalEnergyReading" nillable="true" type="tns:ArrayOfHistoricalEnergyReading" />
  <xs:complexType name="CommunergyMeter">
    <xs:sequence>
      <xs:element minOccurs="0" name="MeterGuid" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="MeterId" type="xs:int" />
      <xs:element minOccurs="0" name="MeterName" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="UserId" nillable="true" type="xs:string" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="CommunergyMeter" nillable="true" type="tns:CommunergyMeter" />
  <xs:complexType name="ArrayOfCommunergyMeter">
    <xs:sequence>
      <xs:element minOccurs="0" maxOccurs="unbounded" name="CommunergyMeter" nillable="true" type="tns:CommunergyMeter" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="ArrayOfCommunergyMeter" nillable="true" type="tns:ArrayOfCommunergyMeter" />
</xs:schema>